<!DOCTYPE html>
  <html>
  <head>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
      <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
      <title>取审批人回调Api说明</title>
      <style>
      table {
        font-family: arial, sans-serif;
        border-collapse: collapse;
      }

      td,
      th {
        border: 1px solid #DDDDDD;
        text-align: left;
        padding: 8px;
      }

      tr:nth-child(even) {
        background-color: #DDDDDD;
      }
      </style>
  </head>
  <body class="layui-layout-body">
  <h2 id="-">取审批人回调</h2>
  <p><strong>接口地址</strong> <code>/flow/audit/user-search</code></p>
  <p><strong>请求方式</strong> <code>POST</code></p>
  <p><strong>请求参数</strong></p>
  <table>
      <thead>
      <tr>
          <th>参数名称</th>
          <th>参数说明</th>
          <th>请求类型</th>
          <th>是否必须</th>
          <th>数据类型</th>
          <th>schema</th>
      </tr>
      </thead>
      <tbody>
      <tr>
          <td>fetchAssignCallBackRo</td>
          <td>fetchAssignCallBackRo</td>
          <td>body</td>
          <td>true</td>
          <td>FetchAssignCallBackRo</td>
          <td>FetchAssignCallBackRo</td>
      </tr>
      </tbody>
  </table>
  <p><strong>schema属性说明</strong></p>
  <p><strong>FetchAssignCallBackRo</strong></p>
  <table>
      <thead>
      <tr>
          <th>参数名称</th>
          <th>参数说明</th>
          <th>请求类型</th>
          <th>是否必须</th>
          <th>数据类型</th>
          <th>schema</th>
      </tr>
      </thead>
      <tbody>
      <tr>
          <td>activityDefinitionId</td>
          <td>节点定义Id</td>
          <td>body</td>
          <td>false</td>
          <td>string</td>
          <td></td>
      </tr>
      <tr>
          <td>auditUserSearchCallBackData</td>
          <td>取流程审批人回调数据</td>
          <td>body</td>
          <td>false</td>
          <td>string</td>
          <td></td>
      </tr>
      <tr>
          <td>businessKey</td>
          <td>业务主键</td>
          <td>body</td>
          <td>false</td>
          <td>string</td>
          <td></td>
      </tr>
      <tr>
          <td>customData</td>
          <td>自定义数据</td>
          <td>body</td>
          <td>false</td>
          <td>string</td>
          <td></td>
      </tr>
      <tr>
          <td>processDefinitionKey</td>
          <td>流程定义Key</td>
          <td>body</td>
          <td>false</td>
          <td>string</td>
          <td></td>
      </tr>
      <tr>
          <td>processInstanceId</td>
          <td>流程实例Id</td>
          <td>body</td>
          <td>false</td>
          <td>string</td>
          <td></td>
      </tr>
      <tr>
          <td>resources</td>
          <td>指派资源集合</td>
          <td>body</td>
          <td>false</td>
          <td>array</td>
          <td>Resource</td>
      </tr>
      <tr>
          <td>startUserId</td>
          <td>流程发起人Id</td>
          <td>body</td>
          <td>false</td>
          <td>string</td>
          <td>&nbsp;</td>
      </tr>
      </tbody>
  </table>
  <p><strong>Resource</strong></p>
  <table>
      <thead>
      <tr>
          <th>参数名称</th>
          <th>参数说明</th>
          <th>请求类型</th>
          <th>是否必须</th>
          <th>数据类型</th>
          <th>schema</th>
      </tr>
      </thead>
      <tbody>
      <tr>
          <td>applyScope</td>
          <td>适用范围</td>
          <td>body</td>
          <td>false</td>
          <td>string</td>
          <td></td>
      </tr>
      <tr>
          <td>dataScope</td>
          <td>数据范围</td>
          <td>body</td>
          <td>false</td>
          <td>string</td>
          <td></td>
      </tr>
      <tr>
          <td>multiInstance</td>
          <td>是否会签，业务系统一般不需要过多处理，在返回时原样返回即可</td>
          <td>body</td>
          <td>false</td>
          <td>boolean</td>
          <td></td>
      </tr>
      <tr>
          <td>priority</td>
          <td>优先级，业务系统一般不需要过多处理，在返回时原样返回即可</td>
          <td>body</td>
          <td>false</td>
          <td>integer(int32)</td>
          <td></td>
      </tr>
      <tr>
          <td>resourceId</td>
          <td>资源Id，一般就是组Id</td>
          <td>body</td>
          <td>false</td>
          <td>string</td>
          <td></td>
      </tr>
      <tr>
          <td>type</td>
          <td>此值目前只有group一种（即组）</td>
          <td>body</td>
          <td>false</td>
          <td>string</td>
          <td>&nbsp;</td>
      </tr>
      </tbody>
  </table>
  <p><strong>响应参数</strong></p>
  <table>
      <thead>
      <tr>
          <th>参数名称</th>
          <th>参数说明</th>
          <th>类型</th>
          <th>schema</th>
      </tr>
      </thead>
      <tbody>
      <tr>
          <td>errorInfo</td>
          <td>错误信息</td>
          <td>ErrorInfo</td>
          <td>ErrorInfo</td>
      </tr>
      <tr>
          <td>message</td>
          <td>兼容SpringMvc的默认错误消息格式</td>
          <td>string</td>
          <td></td>
      </tr>
      <tr>
          <td>resources</td>
          <td>返回的人</td>
          <td>array</td>
          <td>Resource</td>
      </tr>
      <tr>
          <td>success</td>
          <td>是否成功</td>
          <td>boolean</td>
          <td>&nbsp;</td>
      </tr>
      </tbody>
  </table>
  <p><strong>schema属性说明</strong></p>
  <p><strong>ErrorInfo</strong></p>
  <table>
      <thead>
      <tr>
          <th>参数名称</th>
          <th>参数说明</th>
          <th>类型</th>
          <th>schema</th>
      </tr>
      </thead>
      <tbody>
      <tr>
          <td>message</td>
          <td>错误消息</td>
          <td>string</td>
          <td>&nbsp;</td>
      </tr>
      </tbody>
  </table>
  <p><strong>Resource</strong></p>
  <table>
      <thead>
      <tr>
          <th>参数名称</th>
          <th>参数说明</th>
          <th>类型</th>
          <th>schema</th>
      </tr>
      </thead>
      <tbody>
      <tr>
          <td>type</td>
          <td>固定值返回user</td>
          <td>string</td>
      </tr>
      <tr>
          <td>multiInstance</td>
          <td>是否会签，从入参复制过来即可</td>
          <td>boolean</td>
          <td></td>
      </tr>
      <tr>
          <td>phone</td>
          <td>人员的电话</td>
          <td>string</td>
          <td></td>
      </tr>
      <tr>
          <td>priority</td>
          <td>优先级，从入参复制过来即可</td>
          <td>integer(int32)</td>
          <td></td>
      </tr>
      <tr>
          <td>recipient</td>
          <td>人员的邮件</td>
          <td>string</td>
          <td></td>
      </tr>
      <tr>
          <td>resourceId</td>
          <td>人的Id</td>
          <td>string</td>
          <td></td>
      </tr>
      <tr>
          <td>resourceName</td>
          <td>人的姓名</td>
          <td>string</td>
          <td></td>
      </tr>
      </tbody>
  </table>
  <p><strong>响应示例</strong></p>
  <pre><code class="lang-json">{
    <span class="hljs-attr">"resources"</span>: [
        {
            <span class="hljs-attr">"multiInstance"</span>: <span class="hljs-literal">false</span>,
            <span class="hljs-attr">"phone"</span>: <span class="hljs-string">"1382222222"</span>,
            <span class="hljs-attr">"priority"</span>: <span class="hljs-number">1</span>,
            <span class="hljs-attr">"recipient"</span>: <span class="hljs-string">"abc@email.com"</span>,
            <span class="hljs-attr">"resourceId"</span>: <span class="hljs-string">"1"</span>,
            <span class="hljs-attr">"resourceName"</span>: <span class="hljs-string">"张三"</span>,
            <span class="hljs-attr">"type"</span>: <span class="hljs-string">"user"</span>
        }
    ],
    <span class="hljs-attr">"success"</span>: <span class="hljs-literal">true</span>
}
</code></pre>
  </body>
  </html>
